package d1118.r214.num07;

import java.util.ArrayList;

import java.util.Collections;
import java.util.List;

public class StuApp {
    static List<Student> list=new ArrayList<>();
    public static void main(String[] args){
        init();
        //获得平均分
        System.out.println("该班学生的平均分是"+Tools.getAvg(list));

        System.out.println("最高分的学生是"+Tools.getMax(list));

        System.out.println("不及格的学生有"+Tools.getBL60(list));
    }
    public static void init(){
        Student stu1=new Student("张三","1001",95);
        Student stu2=new Student("李四","1002",96);
        Student stu3=new Student("王五","1003",80);
        Student stu4=new Student("马六","1004",70);
        Student stu5=new Student("朱七七","1005",50);
        Student stu6=new Student("猪八戒","1006",30);
        //list.add(stu1);
        Collections.addAll(list,stu1,stu2,stu3,stu4,stu5,stu6);
    }
}
